package com.turingoal.common.util.media.video.wowza;

import org.springframework.web.client.RestTemplate;

/**
 * application相关
 */
public class ApplicationClient {
	private RestTemplate template;

	public ApplicationClient(RestTemplate template) {
		super();
		this.template = template;
	}

	/**
	 * Retrieves the list of Applications for the specifed vhost
	 */
	public String applications(String serverName, String vhostName) {
		String url = "/v2/servers/" + serverName + "/vhosts/" + vhostName + "/applications";
		return template.getForObject(url, String.class);
	}
	
	//Creates a new Stream Recorder in the specified Application Instance and starts recording
	//POST /v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/instances/{instanceName}/streamrecorders

	//Creates a new Stream Recorder and starts recording
	//POST /v2/servers/{serverName}/vhosts/{vhostName}/applications/{appName}/instances/{instanceName}/streamrecorders/{recorderName} 

}
